<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.ProtocolProcessSubmission"
    CodeFile="ProtocolProcessSubmission.aspx.cs" %>

<%@ Register TagPrefix="cc4" Namespace="Workflow.NET.Web.ActivityControl" Assembly="Workflow.NET.Web.ActivityControl" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Submission</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="Submission" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server"></cc1:Header>
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>
                                <cc1:HumansSubNavigation ID="humansSubNavigation" runat="server" Visible="False"></cc1:HumansSubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:HumansSubModuleNavigation ID="humansSubModNavigation" runat="server" Visible="false" />
                                <cc1:AnimalsSubModuleNavigation ID="animalsSubModNavigation" runat="server" Visible="false" />
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <uc1:ProtocolDetailHeader ID="protocolDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td colspan="2">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp;&nbsp;</td>
                            <td align="left" width="100%">
                                <asp:Panel ID="instructions" Visible="true" runat="server">
                                    <asp:Label ID="initialInstructions" runat="server"></asp:Label>
                                    <asp:Label ID="reviewInstructions" runat="server"></asp:Label>
                                    <asp:Label ID="submitInstructions" runat="server"></asp:Label>
                                    <asp:Label ID="resubmitInstructions" runat="server"></asp:Label>
                                    <asp:Label ID="resubmitErrorInstructions" runat="server"></asp:Label>
                                    <asp:Label ID="submitComplete" runat="server"></asp:Label>
                                    <asp:Label ID="resubmitInitialInstructions" runat="server"></asp:Label>
                                    <asp:Label ID="resubmitComplete" runat="server"></asp:Label>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                    <asp:Panel ID="errorGridPanel" runat="server">
                        <br />
                        <table cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                                <td align="left" width="100%">
                                    <asp:DataGrid ID="errorGrid" runat="server" Width="100%" AllowCustomPaging="True"
                                        CssClass="DataGrid" AutoGenerateColumns="False">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:TemplateColumn HeaderText="#">
                                                <ItemTemplate>
                                                    <%# (errorGrid.PageSize*errorGrid.CurrentPageIndex)+ Container.ItemIndex+1%>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="Id" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Type" ReadOnly="True" HeaderText="Form / Type"></asp:BoundColumn>
                                            <asp:ButtonColumn ButtonType="LinkButton" Text='Description' DataTextField="Description"
                                                HeaderText="Description" CommandName="ItemNavigate"></asp:ButtonColumn>
                                            <asp:TemplateColumn HeaderText="Viewed">
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="completed" runat="server" AutoPostBack="True" OnCheckedChanged="OnLogItemStatusChange"
                                                        Checked='<%#DataBinder.Eval(Container.DataItem, "Completed") %>'></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                        </Columns>
                                        <PagerStyle Visible="true"></PagerStyle>
                                    </asp:DataGrid></td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <table cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td>
                                <asp:Panel ID="reSubmission" runat="server" Visible="False">
                                    <table>
                                        <tr>
                                            <td align="left" width="100%">
                                                <asp:Label ID="reSubmitComment" runat="server">Please add comments that pertain 
							to your resubmission</asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td align="left" width="100%">
                                                <asp:TextBox ID="comments" runat="server" TextMode="MultiLine" Rows="7" Columns="50"></asp:TextBox></td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input id="viewApplication" src="../Images/b_view_app.gif" type="image" value="View Application"
                                    runat="server" name="viewApplication" onclick="window.open('ViewProtocolPage.aspx', 'Application', 'width=800, height=600, status=yes, toolbar=no, resizable=yes');return false;" />
                            </td>
                            <td>
                                <input id="viewFullApplication" type="image" src="../Images/b_viewfullapp.gif" value="View Full Application"
                                    runat="server" name="viewApplication" onclick="window.open('ViewFullProtocolPage.aspx', 'Application', 'width=800, height=600, status=yes, toolbar=no, resizable=yes');return false;" />
                            </td>
                            <td>
                                <asp:ImageButton ID="submitApplication" runat="server" ImageUrl="../Images/b_submit.gif">
                                </asp:ImageButton>
                                <asp:ImageButton ID="validateApplication" runat="server" ImageUrl="../Images/b_runappreview.gif">
                                </asp:ImageButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="left" width="100%" colspan="3">
                                <asp:Panel ID="runningValidation" runat="server">
                                    <asp:Label ID="labelPleaseWait" runat="server" CssClass="HeaderText">Application validation is running. Please wait.</asp:Label>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
